home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIFER__ / PROTO / U / LIFE_ALE.C < prev    next >
Text File  |  1991-07-23  |  2KB  |  65 lines

  1. /* Life_Alert */
  2.  
  3. /* File name: Life_Alert */
  4. /* Function: Handle an alert */
  5. /* History: 7/23/91 Original by Prototyper 3.0   */
  6.  
  7. #include "PCommonLife.h"    /* Common */
  8. #include "Common_Life.h"    /* Common */
  9. #include "PUtils_Life.h"    /* General Utilities */
  10. #include "Utils_Life.h"    /* General Utilities */
  11.  
  12. #include "Life_Alert.h"    /* This file */
  13.  
  14.  
  15. /* ======================================================= */
  16.  
  17.  
  18. /* This routine is called at program startup to allow setting of any special */
  19. /* items for the alert */
  20. void A_Init_Life_Alert()
  21. {
  22.  
  23. }
  24.  
  25.  
  26. /* ======================================================= */
  27.  
  28.  
  29.  
  30. /* This routine is called while inside of the Alert filter */
  31. /* theDialog is the dialog(alert) pointer */
  32. /* theEvent is the event that we are to see if we should filter */
  33. /* itemHit is the item we set if we handle the event ourselves */
  34. Boolean Filter_Life_Alert( theDialog,  theEvent, itemHit)
  35. DialogPtr    theDialog;
  36. EventRecord    *theEvent;
  37. short    *itemHit;
  38. {
  39.         Boolean the_Filter_Life_Alert;
  40.  
  41.  
  42.  
  43.         the_Filter_Life_Alert = FALSE;                                     /* Let the Alert routine handle it */
  44.  
  45.         return(the_Filter_Life_Alert);                                     /* return the result */
  46. }                                                                                /* End of function */
  47.  
  48.  
  49. /* ======================================================= */
  50.  
  51.  
  52. /* This routine is called after the alert has been responded to */
  53. /* itemHit is the item that was selected */
  54. void A_Hit_Life_Alert(itemHit)
  55. short    itemHit;
  56. {
  57.  
  58.  
  59. if (Res_Alrt_ReEnter == itemHit)                                         /* See if this Button was selected */
  60.     {
  61.     }
  62.  
  63. }
  64.  
  65.